package io.renren.modules.member.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.utils.CommonUtils;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 会员管理
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-09-24 11:37:15
 */
@TableName("v9_member")
public class V9MemberEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@TableId
	private Integer userid;
	/**
	 * 会员识别码
	 */
	private Integer phpssouid;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 *
	 */
	private String password;
	/**
	 *
	 */
	private String encrypt;
	/**
	 * 昵称
	 */
	private String nickname;
	/**
	 * 头像
	 */
	private String headimg;
	/**
	 * 注册时间
	 */
	private Integer regdate;
	private transient String regdateStr;
	/**
	 * 最后登录时间
	 */
	private Integer lastdate;
	private transient String lastdateStr;


	/**
	 * 注册IP
	 */
	private String regip;
	/**
	 *
	 */
	private String lastip;
	/**
	 *
	 */
	private Integer loginnum;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 邮箱激活，0未激活，1激活，32为MD5等待激活
	 */
	private String emailCode;
	/**
	 *
	 */
	private Integer groupid;
	/**
	 *
	 */
	private Integer areaid;
	/**
	 * 余额
	 */
	private BigDecimal amount;
	/**
	 * 积分点数
	 */
	private Integer point;
	/**
	 * 筷币
	 */
	private BigDecimal kuaibi;
	/**
	 *
	 */
	private Integer modelid;
	/**
	 *
	 */
	private Integer message;
	/**
	 *状态：0正常 1锁定
	 */
	private Integer islock;
	/**
	 * 会员组
	 */
	private Integer vip;
	/**
	 *
	 */
	private Integer overduedate;
	/**
	 *
	 */
	private Integer siteid;
	/**
	 *
	 */
	private String connectid;
	/**
	 * 微信登陆unionid标示符
	 */
	private String unionid;
	/**
	 *
	 */
	@TableField(value = "`from`")
	private String from;
	/**
	 *手机号
	 */
	private String mobile;
	/**
	 *
	 */
	private Integer fuid;
	/**
	 * 拉黑
	 */
	private Integer lahei;
	/**
	 * 封号
	 */
	private Integer fenghao;
	/**
	 * 上级
	 */
	private String inviteCode;
	/**
	 * 佣金
	 */
	private Double brokerage;
	/**
	 * 客服
	 */
	private Integer defaultKefu;
	/**
	 * 使用过的优惠券活动
	 */
	private String freeCard;
	//优惠券使用次数
	private Integer freeCardUse;
	//优惠券金额
	private transient Integer freeCardMoney;
	//折扣
	private transient String discount;
	private transient String discountTxt;
	/**
	 * 本季度会员经验值
	 */
	private Integer vipExpQuarter;
	/**
	 * 累计会员经验
	 */
	private Integer vipExpTotal;
	/**
	 * 会员开始时间
	 */
	private Integer vipStartTime;
	/**
	 * 会员结束时间
	 */
	private Integer vipEndTime;
	/**
	 * 客服id
	 */
	private Integer kefuId;

	private String payword;

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getPhpssouid() {
		return phpssouid;
	}

	public void setPhpssouid(Integer phpssouid) {
		this.phpssouid = phpssouid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEncrypt() {
		return encrypt;
	}

	public void setEncrypt(String encrypt) {
		this.encrypt = encrypt;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getHeadimg() {
		return headimg;
	}

	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}

	public Integer getRegdate() {
		return regdate;
	}

	public void setRegdate(Integer regdate) {
		this.regdate = regdate;
	}

	public String getRegdateStr() {
		return regdate==null ? null : CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(regdate));
	}


	public Integer getLastdate() {
		return lastdate;
	}

	public void setLastdate(Integer lastdate) {
		this.lastdate = lastdate;
	}

	public String getRegip() {
		return regip;
	}

	public void setRegip(String regip) {
		this.regip = regip;
	}

	public String getLastip() {
		return lastip;
	}

	public void setLastip(String lastip) {
		this.lastip = lastip;
	}

	public Integer getLoginnum() {
		return loginnum;
	}

	public void setLoginnum(Integer loginnum) {
		this.loginnum = loginnum;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getEmailCode() {
		return emailCode;
	}

	public void setEmailCode(String emailCode) {
		this.emailCode = emailCode;
	}

	public Integer getGroupid() {
		return groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}

	public Integer getAreaid() {
		return areaid;
	}

	public void setAreaid(Integer areaid) {
		this.areaid = areaid;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Integer getPoint() {
		return point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	public BigDecimal getKuaibi() {
		return kuaibi;
	}

	public void setKuaibi(BigDecimal kuaibi) {
		this.kuaibi = kuaibi;
	}

	public Integer getModelid() {
		return modelid;
	}

	public void setModelid(Integer modelid) {
		this.modelid = modelid;
	}

	public Integer getMessage() {
		return message;
	}

	public void setMessage(Integer message) {
		this.message = message;
	}

	public Integer getIslock() {
		return islock;
	}

	public void setIslock(Integer islock) {
		this.islock = islock;
	}

	public Integer getVip() {
		return vip;
	}

	public void setVip(Integer vip) {
		this.vip = vip;
	}

	public Integer getOverduedate() {
		return overduedate;
	}

	public void setOverduedate(Integer overduedate) {
		this.overduedate = overduedate;
	}

	public Integer getSiteid() {
		return siteid;
	}

	public void setSiteid(Integer siteid) {
		this.siteid = siteid;
	}

	public String getConnectid() {
		return connectid;
	}

	public void setConnectid(String connectid) {
		this.connectid = connectid;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getFuid() {
		return fuid;
	}

	public void setFuid(Integer fuid) {
		this.fuid = fuid;
	}

	public Integer getLahei() {
		return lahei;
	}

	public void setLahei(Integer lahei) {
		this.lahei = lahei;
	}

	public Integer getFenghao() {
		return fenghao;
	}

	public void setFenghao(Integer fenghao) {
		this.fenghao = fenghao;
	}

	public String getInviteCode() {
		return inviteCode;
	}

	public void setInviteCode(String inviteCode) {
		this.inviteCode = inviteCode;
	}

	public Double getBrokerage() {
		return brokerage;
	}

	public void setBrokerage(Double brokerage) {
		this.brokerage = brokerage;
	}

	public Integer getDefaultKefu() {
		return defaultKefu;
	}

	public void setDefaultKefu(Integer defaultKefu) {
		this.defaultKefu = defaultKefu;
	}

	public String getFreeCard() {
		return freeCard;
	}

	public void setFreeCard(String freeCard) {
		this.freeCard = freeCard;
	}

	public Integer getVipExpQuarter() {
		return vipExpQuarter;
	}

	public void setVipExpQuarter(Integer vipExpQuarter) {
		this.vipExpQuarter = vipExpQuarter;
	}

	public Integer getVipExpTotal() {
		return vipExpTotal;
	}

	public void setVipExpTotal(Integer vipExpTotal) {
		this.vipExpTotal = vipExpTotal;
	}

	public Integer getVipStartTime() {
		return vipStartTime;
	}

	public void setVipStartTime(Integer vipStartTime) {
		this.vipStartTime = vipStartTime;
	}

	public Integer getVipEndTime() {
		return vipEndTime;
	}

	public void setVipEndTime(Integer vipEndTime) {
		this.vipEndTime = vipEndTime;
	}

	public Integer getKefuId() {
		return kefuId;
	}

	public void setKefuId(Integer kefuId) {
		this.kefuId = kefuId;
	}



	public String getLastdateStr() {
		return lastdate==null ? null : CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(lastdate));
	}

	public Integer getFreeCardUse() {
		return freeCardUse;
	}

	public void setFreeCardUse(Integer freeCardUse) {
		this.freeCardUse = freeCardUse;
	}

	public Integer getFreeCardMoney() {
		return freeCardMoney;
	}

	public void setFreeCardMoney(Integer freeCardMoney) {
		this.freeCardMoney = freeCardMoney;
	}

	public String getDiscount() {
		return discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}

	public String getDiscountTxt() {
		return discountTxt;
	}

	public void setDiscountTxt(String discountTxt) {
		this.discountTxt = discountTxt;
	}

	public String getPayword() {
		return payword;
	}

	public void setPayword(String payword) {
		this.payword = payword;
	}


	@Override
	public String toString() {
		return "V9MemberEntity [userid=" + userid + ", phpssouid=" + phpssouid + ", username=" + username
				+ ", password=" + password + ", encrypt=" + encrypt + ", nickname=" + nickname + ", headimg=" + headimg
				+ ", regdate=" + regdate + ", lastdate=" + lastdate + ", regip=" + regip + ", lastip=" + lastip
				+ ", loginnum=" + loginnum + ", email=" + email + ", emailCode=" + emailCode + ", groupid=" + groupid
				+ ", areaid=" + areaid + ", amount=" + amount + ", point=" + point + ", kuaibi=" + kuaibi + ", modelid="
				+ modelid + ", message=" + message + ", islock=" + islock + ", vip=" + vip + ", overduedate="
				+ overduedate + ", siteid=" + siteid + ", connectid=" + connectid + ", unionid=" + unionid + ", from="
				+ from + ", mobile=" + mobile + ", fuid=" + fuid + ", lahei=" + lahei + ", fenghao=" + fenghao
				+ ", inviteCode=" + inviteCode + ", brokerage=" + brokerage + ", defaultKefu=" + defaultKefu
				+ ", freeCard=" + freeCard + ", freeCardUse=" + freeCardUse + ", vipExpQuarter=" + vipExpQuarter
				+ ", vipExpTotal=" + vipExpTotal + ", vipStartTime=" + vipStartTime + ", vipEndTime=" + vipEndTime
				+ ", kefuId=" + kefuId + ", payword=" + payword + "]";
	}



}
